package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.UserQuerstionMapper;
import com.rongke.model.UserQuestion;
import com.rongke.service.UserQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @UserQuerstionServiceImpl
 * @用户问卷调查ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class UserQuestionServiceImpl extends ServiceImpl<UserQuerstionMapper, UserQuestion> implements UserQuestionService {

    @Autowired
    private UserQuerstionMapper userQuerstionMapper;

    /**
     * @根据条件查找用户问卷调查
     * @param userQuestion
     * @return
     */
    @Override
    public List<UserQuestion> selectByCondition(UserQuestion userQuestion) {
        return userQuerstionMapper.selectByCondition(userQuestion);
    }
}
